﻿@model LastoRevival.Service.Contracts.Models.LogOnModel
@{ ViewBag.Title = LanguageLoader.GetWord("LogOn"); }
@{ 
	this.AddIndexBreadCrumb();
	this.AddCurrentBreadCrumb(LanguageLoader.GetWord("LogOn"));
}


@if ((bool?)ViewBag.JustVerified == true)
{	
	<p class="field-validation-error">@LanguageLoader.GetWord("JustVerifiedMessage")</p>
}

<div id="logon-instructions">
    @{ var registerLink = Html.ActionLink(LanguageLoader.GetWord("RegisterLabel"), "Register"); }
    @Html.Raw(string.Format(LanguageLoader.GetWord("LoginInfoTextFormat"), registerLink))
</div>

@Html.ValidationSummary(true)

<div id="logon-form-container">
	@using (Html.BeginForm("Login", "User", FormMethod.Post))
	{
		@Html.Hidden("returnUrl", Request.QueryString["returnUrl"])
                        
		<span class="form-field" id="logon-username">
			<label for="username">@LanguageLoader.GetWord("UsernameLabel")</label>
			@Html.TextBoxFor(m => m.UserName)
			@Html.ValidationMessageFor(m => m.UserName)
		</span>
                        
		<span class="form-field" id="logon-password">
			<label for="password">@LanguageLoader.GetWord("PasswordLabel")</label>
			@Html.PasswordFor(m => m.Password)
			@Html.ValidationMessageFor(m => m.Password) 
		</span> 
                        
		<span class="form-field" id="logon-rememberme">
			<label for="rememberMe">@LanguageLoader.GetWord("RememberMeLabel")</label>
			@Html.CheckBoxFor(m => m.RememberMe)
		</span>
                        
		<span class="button-container">
			<input type="submit" value="@LanguageLoader.GetWord("LogOn")" onclick="" />
		</span>
                        
    }
</div>